<?php
/**
 * Created by PhpStorm.
 * User: cuibenyong
 * Date: 2019/9/14
 * Time: 10:26 AM
 */

namespace app\index\validate;


use think\Validate;

class Fruit extends Validate
{

    protected $rule = [
        'title' => 'require',
        'type' => 'require',
        'keywords' => 'require',
        'content' => 'require',
    ];

    protected $message = [
        'title.require' => '请输入标题',
        'keywords.require' => '请输入关键字',
        'content.require' => '请输入内容',
        'type.require' => '请选择成果类型',
    ];
}